import type { CommonAPI } from '../types/all'
import { defHttp } from '../http'

/** 查询配置 */
export const getConfApi: CommonAPI<'/v1/conf', 'get'> = params =>
  defHttp.get(`/v1/conf`, { params })
/** 修改配置 */
export const updateConfApi: CommonAPI<'/v1/conf', 'put'> = data =>
  defHttp.put(`/v1/conf`, data)

/** 验证邮箱 */
export const postEmailApi: CommonAPI<'/v1/email', 'post'> = data =>
  defHttp.post(`/v1/email`, data)
